package hcn.protocol.ods.report;

import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import ctd.util.xml.jaxb.DateTimeAdapter;

import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.io.Serializable;
import java.util.Date;

/**
 * Created by jinxin on 2016/6/14.
 */
@XmlRootElement(name = "labReport")
public class LabCrisisDetailBean implements Serializable{
    private static final long serialVersionUID = -8291120577447238304L;

    private InnerBean lab;
    private String result;
    private String dealMan;         //处理人
    private Date dealDt;            //处理时间
    private String dealFlag = "0";      //处理标志
    private String dealOpinion;

    @JsonIgnore
    @JsonGetter
    public InnerBean getLab() {
        return lab;
    }

    public void setLab(InnerBean lab) {
        this.lab = lab;
    }

    @XmlTransient
    public String getLabId() {
        return lab.getText();
    }

    @XmlTransient
    public String getLocalLabId() {
        return lab.getLocalCode();
    }

    @XmlTransient
    public String getLabName() {
        return lab.getLocalText();
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getDealMan() {
        return dealMan;
    }

    public void setDealMan(String dealMan) {
        this.dealMan = dealMan;
    }

    @XmlJavaTypeAdapter(DateTimeAdapter.class)
    public Date getDealDt() {
        return dealDt;
    }

    public void setDealDt(Date dealDt) {
        this.dealDt = dealDt;
    }

    public String getDealFlag() {
        return dealFlag;
    }

    public void setDealFlag(String dealFlag) {
        this.dealFlag = dealFlag;
    }

    public String getDealOpinion() {
        return dealOpinion;
    }

    public void setDealOpinion(String dealOpinion) {
        this.dealOpinion = dealOpinion;
    }
}
